package com.oliver.picturebackendspaceservice;

import org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(exclude = {ShardingSphereAutoConfiguration.class})
@MapperScan("com.oliver.picturebackendspaceservice.mapper")
@ComponentScan("com.oliver")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.oliver.picturebackendopenfign.feignClient"})
public class PictureBackendSpaceServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(PictureBackendSpaceServiceApplication.class, args);
    }

}
